function splitChars(chars: string) {
    if (typeof chars !== 'string') {
        throw new Error('chars is not string');
    }
    return chars.split('');
}
